﻿using SQLite;

namespace FireChat.Server.Database.Table;


/// <summary>
/// 数据表元素
/// </summary>
public abstract class DataTableBase
{
    /// <summary>
    /// 数据表主键
    /// </summary>
    [PrimaryKey, AutoIncrement]
    public int Id { get; init; }

    /// <summary>
    /// 数据创建时间
    /// </summary>
    [Column("CreateTime")]
    public DateTime CreatedTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 数据最后更新时间
    /// </summary>
    [Column("LastUpdateTime")]
    public DateTime LastUpdateTime { get; set; } = DateTime.Now;
}
